package board.to;

public class P2TO {
	private int p2;
	private int result;
	public P2TO() {
		super();
	}
	public P2TO(int p2, int result) {
		super();
		this.p2 = p2;
		this.result = result;
	}
	public int getP2() {
		return p2;
	}
	public void setP2(int p2) {
		this.p2 = p2;
	}
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	@Override
	public String toString() {
		return "P2TO [p2=" + p2 + ", result=" + result + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + p2;
		result = prime * result + this.result;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		P2TO other = (P2TO) obj;
		if (p2 != other.p2)
			return false;
		if (result != other.result)
			return false;
		return true;
	}
	
	
}
